package com.ming.ribbon.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @Auther: tangC
 * @Date: 2020/6/8 14:01
 * @Description:
 */
@Service
public class TestService {


    @Autowired
    private RestTemplate restTemplate;

    public String test(){
        return restTemplate.getForObject("http://config_client/test",String.class);
    }
}
